package com.sh.data.engine.domain.common.model.domain;


public class Item extends Position {
    private String id;

    private Label label;

    public void setId(String id) {
        this.id = id;
    }

    public void setLabel(Label label) {
        this.label = label;
    }

    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof Item))
            return false;
        Item other = (Item) o;
        if (!other.canEqual(this))
            return false;
        Object this$id = getId(), other$id = other.getId();
        if ((this$id == null) ? (other$id != null) : !this$id.equals(other$id))
            return false;
        Object this$label = getLabel(), other$label = other.getLabel();
        return !((this$label == null) ? (other$label != null) : !this$label.equals(other$label));
    }

    protected boolean canEqual(Object other) {
        return other instanceof Item;
    }

    public int hashCode() {
        int PRIME = 59;
        int result = 1;
        Object $id = getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        Object $label = getLabel();
        return result * 59 + (($label == null) ? 43 : $label.hashCode());
    }

    public String toString() {
        return "Item(id=" + getId() + ", label=" + getLabel() + ")";
    }

    public String getId() {
        return this.id;
    }

    public Label getLabel() {
        return this.label;
    }
}